package com.jic.member.controller.manage;

import com.jic.member.entity.MememberGrowthAction;
import com.jic.member.request.MemberGrowthRuleRequest;
import com.jic.member.service.MememberGrowthActionService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("growthActionRule")
public class MemberGrowthActionController{
    @Autowired
    private MememberGrowthActionService mememberGrowthActionService;


    @ApiOperation("根据成长值id查询注册，分享，点赞，收藏，晒单成长值规则")
    @RequestMapping("getRrowthRuleById")
    public MememberGrowthAction getRrowthRuleById(@RequestBody MemberGrowthRuleRequest param){
        return mememberGrowthActionService.getRrowthRuleById(param.getId());
    }
}
